package com.zengqingfa.springboot.redis.client;

/**
 * @fileName: JedisClient
 * @author: zengqf3
 * @date: 2020-12-30 19:47
 * @description:
 */
public interface JedisClient {
    String set(String key, String value);

    String get(String key);

    Boolean exists(String key);

    Long expire(String key, int seconds);

    Long ttl(String key);

    Long incr(String key);

    Long hset(String key, String field, String value);

    String hget(String key, String field);

    Long hdel(String key, String... field);

    Long setnx(String key, String value);

    String set(String key, int seconds, String value);
}
